package cn.swing.learning;

import javax.swing.*;

/**
 * Desc : TODO
 * ClassName : cn.swing.learning.Tools
 *
 * @author : 林鹏群
 * @date : 2022/12/22 14:25
 */
public class Tools {

    public static String level = "初级";
    public static int rows = 9;
    public static int cols = 9;
    public static int totalMines = 80;
    public static ImageIcon blank = new ImageIcon("./picture/blank.gif");
    public static ImageIcon mine = new ImageIcon("./picture/mine.gif");
    public static ImageIcon arrounMines[] = new ImageIcon[9];
    public static ImageIcon ds[] = new ImageIcon[10];
    public static ImageIcon mines[] = new ImageIcon[4];


    /**
     * 假数据
     */
    public static Object[][] cellData = {{"初级", "123","张三"},{"初级", "100","张四"}};
    public static String[] columnNames = {"等级", "时间","姓名"};

    static {
        for (int i = 0; i < arrounMines.length; i++) {
            arrounMines[i] = new ImageIcon("./picture/"+i+".gif");
        }

        for (int i = 0; i < ds.length; i++) {
            ds[i] = new ImageIcon("./picture/d"+i+".gif");
        }

        for (int i = 0; i < mines.length; i++) {
            mines[i] = new ImageIcon("./picture/mine"+i+".gif");
        }
    }



    public  static  void  zhongji(){
         rows = 19;
         cols = 19;
        totalMines = 15;
    }

}
